<template>
    <div>
        	<mc-checkbox-group v-model="val">
            <el-checkbox label="1" >语文</el-checkbox>
            <el-checkbox label="2" >数学</el-checkbox>
          </mc-checkbox-group>
          <el-button @click="view">查看</el-button>
    </div>
</template>

<script>
import McCheckboxGroup from './components/McCheckboxGroup'
export default {
    data(){
        return {
          val : "1"
		    }
    },
  watch:{
    val(v){
      console.log(v)
    }
  },
    components:{
        McCheckboxGroup,
    },
    methods : {
        view:function(){
//          this.val="1,2"
            console.log(this.val)
//            this.value = "1"
        }
    }
}
</script>

<style>

</style>
